package com.qjyy.c.vo;

/**
 * @Author: Martin-WuHaoran
 * @Date: 2019-04-15 15:25
 * @Description:
 */
public class ResultVOUtil {
    public static ResultVO<Object> success(Object object) {
        ResultVO<Object> resultVO = new ResultVO<Object>();
        resultVO.setData(object);
        resultVO.setCode(0);
        resultVO.setMessage("success");
        return resultVO;
    }
    public static ResultVO<Object> success() {
        return success(null);
    }
    public static ResultVO error(Integer code, String msg) {
        ResultVO resultVO = new ResultVO();
        resultVO.setCode(code);
        resultVO.setMessage(msg);
        return resultVO;
    }
}
